package ssm.model;

import org.apache.ibatis.annotations.Param;
import ssm.dao.TrackCar;
import ssm.vo.TrackCarAddPersonVo;

import java.util.List;
import java.util.Map;

public interface TrackCarMapper {

    List<TrackCar> get();


    List<TrackCar> getByTime(String starttime, String endtime);

    List<TrackCar> selectOutCars( Map<String,Object> map);
    List<TrackCar> selectAll(Map<String,Object> map);

    List<TrackCar> getByTimeOrCph(String cph, String starttime, String endtime);

    List<TrackCar> getByTimeOrCamerId(String camerId, String bigTime, String smallTime);

    int getTotal(Map<String, Object> param);

    TrackCar finNewDate(String name);

    int getCountByTime(Map<String,Object> param);

    List<TrackCar> getOneByTime(Map<String, Object> param);


    int deleteByPrimaryKey(Integer id);

    int insert(TrackCar record);

    int insertSelective(TrackCar record);

    TrackCar selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TrackCar record);

    int updateByPrimaryKey(TrackCar record);

    TrackCar searchCar(String cph);

    List<TrackCarAddPersonVo> getCarAndPerson(Map<String, Object> param) ;

    int getCarAndPersonTotal(Map<String, Object> param) ;


    //  List<Map<String, Object>> getCarDetail(String cph, String starttime, String endtime);

    //List<TrackCar> getByTimeOrJid(Map<String,Object>map);
}